Skip to main content
Server.prototype.[Symbol.asyncDispose] - net - Node documentation
method Server.prototype.[Symbol.asyncDispose]

Usage in Deno

import { Server } from "node:net";
Server.prototype.[Symbol.asyncDispose](): Promise<void>

Calls Server.close() and returns a promise that fulfills when the server has closed.

Return Type

Promise<void>